package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("外盘数据")
public class OuterMarketDomain {

    @ApiModelProperty("外盘名称")
    private String name;
    @ApiModelProperty("当前点")
    private BigDecimal curPoint;
    @ApiModelProperty("涨跌值")
    private BigDecimal upDown;
    @ApiModelProperty("涨幅")
    private BigDecimal rose;
    @ApiModelProperty("当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curTime;
}
